Optimal. Leaf size=10 \[ -\frac {\log (1+\cos (x))}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2746, 31}
\begin {gather*} -\frac {\log (\cos (x)+1)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 2746
Rubi steps
\begin {align*} \int \frac {\sin (x)}{a+a \cos (x)} \, dx &=-\frac {\text {Subst}\left (\int \frac {1}{a+x} \, dx,x,a \cos (x)\right )}{a}\\ &=-\frac {\log (1+\cos (x))}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 12, normalized size = 1.20 \begin {gather*} -\frac {2 \log \left (\cos \left (\frac {x}{2}\right )\right )}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 13, normalized size = 1.30
method | result | size |
derivativedivides | \(-\frac {\ln \left (a +a \cos \left (x \right )\right )}{a}\) | \(13\) |
default | \(-\frac {\ln \left (a +a \cos \left (x \right )\right )}{a}\) | \(13\) |
norman | \(\frac {\ln \left (\tan ^{2}\left (\frac {x}{2}\right )+1\right )}{a}\) | \(14\) |
risch | \(\frac {i x}{a}-\frac {2 \ln \left ({\mathrm e}^{i x}+1\right )}{a}\) | \(22\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 12, normalized size = 1.20 \begin {gather*} -\frac {\log \left (a \cos \left (x\right ) + a\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 12, normalized size = 1.20 \begin {gather*} -\frac {\log \left (\frac {1}{2} \, \cos \left (x\right ) + \frac {1}{2}\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 8, normalized size = 0.80 \begin {gather*} - \frac {\log {\left (\cos {\left (x \right )} + 1 \right )}}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 10, normalized size = 1.00 \begin {gather*} -\frac {\log \left (\cos \left (x\right ) + 1\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 10, normalized size = 1.00 \begin {gather*} -\frac {\ln \left (\cos \left (x\right )+1\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________